<%--
  Created by IntelliJ IDEA.
  User: 戴金睿
  Date: 2022/11/20
  Time: 16:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>eshop电子书城</title>
    <link rel="shortcut icon"
          href="favicon.ico" />
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="stylesheet" type="text/css"
          href="static/lib/bootstrap/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css"
          href="static/stylesheets/theme.css" />
    <link rel="stylesheet"
          href="static/lib/font-awesome/css/font-awesome.css" />
    <script
            src="static/lib/jquery-1.7.2.min.js"
            type="text/javascript"></script>

    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .brand { font-family: georgia, serif; }
        .brand .first {
            color: #ccc;
            font-style: italic;
        }
        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>

</head>

<body class="">


<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>

<div class="navbar">
    <div class="navbar-inner">
        <ul class="nav pull-right">
            <li id="fat-menu" class="dropdown">
                <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="icon-user"></i> Jack Smith
                    <i class="icon-caret-down"></i>
                </a>

                <ul class="dropdown-menu">
                    <li><a tabindex="-1" href="#">My Account</a></li>
                    <li class="divider"></li>
                    <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li>
                    <li class="divider visible-phone"></li>
                    <li><a tabindex="-1" href="sign-in.html">Logout</a></li>
                </ul>
            </li>

        </ul>
        <a class="brand" href="index"><span class="second">EShopManager</span></a>
    </div>
</div>

</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>


<div id="menuDiv" class="sidebar-nav">

</div>

<script src="static/lib/jquery-1.7.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
    var parent="会员管理";
    var child="添加会员";

    var menuArray=[
        {
            id:"book-menu",
            parent:"图书管理",
            icon:"icon-dashboard",
            childList:[
                {name:"查看图书信息",url:"bookmanager.html"},
                {name:"添加图书信息",url:"addbook.html"},
                {name:"回收站",url:"booktrash.html"}
            ]
        },
        {
            id:"ad-menu",
            parent:"促销管理",
            icon:"icon-dashboard",
            childList:[
                {name:"首页轮播",url:"adimg.html"},
                {name:"公告板",url:"adnews.html"}
            ]
        },
        {
            id:"type-menu",
            parent:"分类管理",
            icon:"icon-briefcase",
            childList:[
                {name:"分类列表管理",url:"typemanager.html"}
            ]
        },
        {
            id:"order-menu",
            parent:"订单管理",
            icon:"icon-legal",
            childList:[
                {name:"订单列表",url:"ordermanager.html"},
                {name:"发货单列表",url:"sendlist.html"},
                {name:"退货单列表",url:"returnslist.html"}
            ]
        },
        {
            id:"account-menu",
            parent:"会员管理",
            icon:"icon-legal",
            childList:[
                {name:"查看会员信息",url:"action.html"},
                {name:"添加会员",url:"adduser.html"}
            ]
        }
    ];


    function menuClick(currentParent,currentChild){
        parent=currentParent;
        child=currentChild;
        loadMenu();
    }

    function loadMenu(){
        var str="<a href='index' class='nav-header'><i class='icon-comment'></i>首页</a>";
        for(var i=0;i<menuArray.length;i++){
            var obj=menuArray[i];
            str+="<a href='#"+obj.id+"' class='nav-header' data-toggle='collapse'>";
            str+="<i class='"+obj.icon+"'></i>";
            str+=obj.parent;
            str+="</a>";
            str+="<ul id='"+obj.id+"' class='"+(parent==obj.parent?"nav nav-list collapse in":"nav nav-list collapse")+"'>";
            for(var j=0;j<obj.childList.length;j++){
                var childObj=obj.childList[j];
                str+="<li class='"+(child==childObj.name?"active":"")+"'><a onClick='menuClick(\'"+obj.parent+"\',\'"+childObj.name+"\')' href='"+childObj.url+"'>";
                str+=childObj.name;
                str+="</a></li>";
            }
            str+="</ul>";
        }

        $("#menuDiv").html(str);
    }

    $(function(){
        loadMenu();
    });


</script>


</body>
</html>
<div class="content">
    <div class="header">

        <h1 class="page-title">会员管理</h1>
    </div>

    <ul class="breadcrumb">
        <li><a href="accountmanager.jsp">会员管理</a> <span class="divider">/</span></li>
        <li class="active">添加会员</li>
    </ul>

    <div class="container-fluid">

        <div class="row-fluid">

            <div class="dialog">
                <div class="block">
                    <p class="block-heading">添加用户</p>
                    <div class="block-body">
                        <form>
                            <label>会员邮箱</label>
                            <input type="text" class="span12" id="email"
                                   name="email" title="ⓘ提示" data-container="body"
                                   data-toggle="popover" data-placement="right"
                                   data-content="邮箱不能为空" />

                            <label>用户名</label>
                            <input type="text"
                                   class="span12" id="username" name="username" title="ⓘ提示"
                                   data-container="body" data-toggle="popover"
                                   data-placement="right" data-content="用户名不能为空" />

                            <label>密码</label>
                            <input type="password" class="span12" id="password"
                                   name="password" title="ⓘ提示" data-container="body"
                                   data-toggle="popover" data-placement="right"
                                   data-content="密码不能为空" />

                            <label>性别</label>
                            男 <input type="radio" class="span1" name="sex" value="男"
                                     checked="checked" />&nbsp;&nbsp;&nbsp;&nbsp; 女 <input
                                type="radio" class="span1" name="sex" value="女" /> <label><hr /></label>


                            <label>手机号码</label> <input type="text" class="span12" id="phone"
                                                       name="phone" title="ⓘ提示" data-container="body"
                                                       data-toggle="popover" data-placement="right"
                                                       data-content="手机不能为空" /> <label>收货地址</label> <select
                                name="area" id="province" class="span5">
                            <option value="">--请选择省--</option>
                        </select> <select name="area" id="city" class="span5">
                            <option value="">--请选择市--</option>
                        </select> <select name="area" id="area" class="span5"
                                          style="width: 230px; height: 20px">
                            <option value="">--请选择区/县--</option>
                        </select> <label>详细地址</label> <input type="text" class="span12"
                                                             id="address" name="address" title="ⓘ提示" data-container="body"
                                                             data-toggle="popover" data-placement="right"
                                                             data-content="详细地址不能为空" /> <label><hr /></label> <label>密保问题</label>
                            <select name="qustion" id="qustion" class="span12">
                                <option value="">--请选择一个问题--</option>
                            </select>

                            <label>答案</label>
                            <input type="text" class="span12" id="answer"
                                   name="answer" title="ⓘ提示" data-container="body"
                                   data-toggle="popover" data-placement="right"
                                   data-content="答案不能为空" />

                            <label><hr /></label>
                            <a href="javascript:subReg()" class="btn btn-primary pull-right">确认添加</a>


                            <div class="clearfix"></div>
                        </form>
                    </div>
                </div>

            </div>

        </div>


        <!DOCTYPE html>
        <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Insert title here</title>
        </head>
        <body>

        <footer>
            <hr>
            <!-- Purchase a site license to remove this link from the footer: http://www.portnine.com/bootstrap-themes -->
            <p class="pull-right">
                <a href="http://www.lanqiao.org/" target="_blank">蓝桥网版权所有</a>
            </p>

            <p>
                京公网安备 11010802020352号 © Copyright 2018
            </p>
        </footer>

        </body>
        </html>
    </div>


</div>


<script src="bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">
    $("[rel=tooltip]").tooltip();
    $(function() {
        $('.demo-cancel-click').click(function(){return false;});
    });

    function changeCode(){
        $("#vCode").attr("src","verifyCodeServlet?uuid="+new Date().getTime());
    }

    //回车事件
    $(function(){

        $(window).keydown(function(e){
            if(e.keyCode==13){
                sublogin();
            }
        });

    });

</script>

</body>
</html>



